<?php $this->headLink()->appendStylesheet($this->dirCss.'/mainstyle.css'); ?>
<?php $this->headLink()->appendStylesheet($this->dirCss.'/manage.css'); ?>
<?php echo $this->render('common/header.phtml'); ?>
<?php $this->headTitle('Manage Job') ?>
	<div id="main-wrapper">
    
		<div id="wrapper-content">
        
        	<div id="content">
            
            	<div id="menu-manage-job">
                
                	<ul>
                    	<li>
                        	<a href="<?php echo $this->baseUrl('employer/manage/');?>">Online Job</a>
                        </li>
                        <li class="menu-active"><a href="<?php echo $this->baseUrl('employer/manage/draft');?>">Draft</a></li>
                        <li><a href="<?php echo $this->baseUrl('employer/manage/expired');?>">Expired</a></li>
                        <li class="long-menu"><a href="<?php echo $this->baseUrl('employer/manage/expiringsoon');?>">Expiring in 7 days</a></li>
                    </ul>            		
            	</div><!-- END #menu-manage-job -->
                                
                <div id="job-list">
               
                	<div id="job-list-header">
                    	<span class="job-title">Job Title</span>
                        <span class="job-id">Job Id</span>
                        <span class="job-expired">Expired</span>
                        <span class="job-view">Views</span>
                        <span class="job-application">Applications</span>
                    </div><!-- END #job-list-header -->
                    
                <?php foreach($this->jobList as $oneJob){?>
                
                    <div class="job-list-content">
                    	<span class="job-title"><a href="<?php echo $this->baseUrl('/index/jobdetail/id/'.$oneJob['id']); ?>" ><?php echo $oneJob['title']; ?></a></span>
                        <span class="job-id"><?php echo $oneJob['id'];?></span>
                        <span class="job-expired"><?php echo date('d/m/Y', strtotime($oneJob['expire_date'])) ;?></span>
                        <span class="job-view"><?php echo $oneJob['viewcount'];?></span>
                        <span class="job-application"><?php echo $oneJob['application'];?></span>
                    </div>
				<?php }?>
                </div><!-- END #job-list -->
                
        		<div id="another">
                </div>
            </div><!-- ENND #content -->
        </div><!-- END #wrapper-content -->
	</div><!--  END #wrapper-content -->
<script type="text/javascript">
	$(document).ready(function(e) {
        $('#menu-manage-job li').click(function(){
			var url = $(this).children('a').attr('href');
			window.location = url;
		});
    });
</script>
<?php echo $this->render('common/footer.phtml'); ?>